package com.mspbots.core.ticketai.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * com.mspbots.sync.model.TicketOnly
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/11/22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tenant_schedule", autoResultMap = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TicketSchedule {

    private Long id;
    private Long cwId;
    private Long tenantId;
    private Long objectId;
    private Long memberId;
    private String name;
    private String identifier;
    private LocalDateTime dateStart;
    private LocalDateTime dateEnd;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
    private Boolean doneFlag;
    private JsonNode extend;

    @TableField(exist = false)
    private String status;
}
